<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>7.组件数据传递demo</title>
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="app">
        <reverse-component v-bind:yyy="message"></reverse-component>
    </div>
    <script>
        Vue.component('reverse-component',{
            props:['yyy'],
            template: `<input type="text" v-model="yyy">`,
        })
        var app = new Vue({
            el: '#app',
            data: {
                message: 'hello'
            }
        })
    </script>
</body>

</html>